تعرف ايه اللى بيحصل من وراك فى الـ JavaScript لما بتكتب كود زي ده؟
var str = "hello"; str = str.substring(0, 2);
الـ str هنا عبارة عن primitive type مش المفروض يبقى فيه properties او functions. الـ JavaScript بتاخد الـ str وتعمل منه String Object وتنفذ ال substring وتاخد النتيجة على جنب وتمسح ال Object اللى اتعمل وتعمل من النتيجة value جديدة لـ str.
وتعرف ان الـ int فى الـ C# عبارة عن primitive type برضه لكنه فى الأصل struct. علشان كدة ممكن تلاقى فيه function زي ToString مثلاً عادي.
وتعرف ان الـ variables فى لغة زي Rust هى immutable بالفطرة ولو عايزن تبقى mutable لازم تحدد ده بنفسك.
تعرف ان الـ string فى C# يعتبر immutable لكن الـ StringBuilder يعتبر mutable وان ال string فى الـ javascript برضه immutable لكنه فى لغة زي الـ PHP بيبقى mutable.
على الرغم من انك مش مطالب تعرف كل لغة بتتعامل مع الداتا ازاى لكنك مطالب بحاجتين 1- تعرف لغتك كويس بتعمل ايه من جوه 2- ماتفترضش ان اللى بيحصل فى لغتك بيحصل فى باقى اللغات (حتى لو فى تشابه كبير)
تعرف ايه اللى بيحصل من وراك فى الـ JavaScript لما بتكتب كود زي ده؟
var str = "hello"; str = str.substring(0, 2);
الـ str هنا عبارة عن primitive type مش المفروض يبقى فيه properties او functions. الـ JavaScript بتاخد الـ str وتعمل منه String Object وتنفذ ال substring وتاخد النتيجة على جنب وتمسح ال Object اللى اتعمل وتعمل من النتيجة value جديدة لـ str.
وتعرف ان الـ int فى الـ C# عبارة عن primitive type برضه لكنه فى الأصل struct. علشان كدة ممكن تلاقى فيه function زي ToString مثلاً عادي.
وتعرف ان الـ variables فى لغة زي Rust هى immutable بالفطرة ولو عايزن تبقى mutable لازم تحدد ده بنفسك.
تعرف ان الـ string فى C# يعتبر immutable لكن الـ StringBuilder يعتبر mutable وان ال string فى الـ javascript برضه immutable لكنه فى لغة زي الـ PHP بيبقى mutable.
على الرغم من انك مش مطالب تعرف كل لغة بتتعامل مع الداتا ازاى لكنك مطالب بحاجتين 1- تعرف لغتك كويس بتعمل ايه من جوه 2- ماتفترضش ان اللى بيحصل فى لغتك بيحصل فى باقى اللغات (حتى لو فى تشابه كبير)
منقول
BY Web Development Code
Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283
The S&P 500 slumped 1.8% on Monday and Tuesday, thanks to China Evergrande, the Chinese property company that looks like it is ready to default on its more-than $300 billion in debt. Cries of the next Lehman Brothers—or maybe the next Silverado?—echoed through the canyons of Wall Street as investors prepared for the worst.
How Does Bitcoin Work?
Bitcoin is built on a distributed digital record called a blockchain. As the name implies, blockchain is a linked body of data, made up of units called blocks that contain information about each and every transaction, including date and time, total value, buyer and seller, and a unique identifying code for each exchange. Entries are strung together in chronological order, creating a digital chain of blocks. “Once a block is added to the blockchain, it becomes accessible to anyone who wishes to view it, acting as a public ledger of cryptocurrency transactions,” says Stacey Harris, consultant for Pelicoin, a network of cryptocurrency ATMs. Blockchain is decentralized, which means it’s not controlled by any one organization. “It’s like a Google Doc that anyone can work on,” says Buchi Okoro, CEO and co-founder of African cryptocurrency exchange Quidax. “Nobody owns it, but anyone who has a link can contribute to it. And as different people update it, your copy also gets updated.”